package com.deer.wms.base.system.service.box.impl;

import com.deer.wms.base.system.dao.box.BoxItemRecordMapper;
import com.deer.wms.base.system.model.box.BoxInfo;
import com.deer.wms.base.system.model.box.BoxItem;
import com.deer.wms.base.system.model.box.BoxItemCriteria;
import com.deer.wms.base.system.model.box.BoxItemDto;
import com.deer.wms.base.system.service.box.BoxItemRecordService;
import com.deer.wms.common.core.service.AbstractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BoxItemRecordServiceImpl extends AbstractService<BoxInfo, Integer> implements BoxItemRecordService {
    @Autowired
    private BoxItemRecordMapper boxItemRecordMapper;

    @Override
    public int insertBoxItemRecord(BoxItemDto boxItemDto) {
        return boxItemRecordMapper.insertBoxItemRecord(boxItemDto);
    }

    @Override
    public List<BoxItemDto> selectBoxItemDtoList(BoxItemCriteria boxItemCriteria) {
        return boxItemRecordMapper.selectBoxItemDtoList(boxItemCriteria);
    }
}
